package io.renren.sdapi.dto.httprequestparam.image2image;

import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class TypeCRequest extends BaseParam{
    private double denoising_strength = 0.3;
    private String script_name = "SD upscale";
    private Object[] script_args = {null,64,"R-ESRGAN 4x+"};
    private Object alwayson_scripts;

    public void valueConversion(Integer value, Object obj) {
        List<Object> modifiableList = new ArrayList<>(Arrays.asList(script_args));
        modifiableList.add(value);
        this.script_args = modifiableList.toArray();
        this.alwayson_scripts = obj;
    }
}
